import http from "./http";

export default {
  // 分页获取小区信息
  getRealtyPage(params) {
    return http.post("/realty/getRealtyPage", params);
  },
  // 添加小区信息
  addRealty(params) {
    return http.post("/realty/addRealty", params);
  },
  // id获取小区信息
  getRealtyById(params) {
    return http.get("/realty/getRealtyById", { params });
  },
  //   修改小区信息
  editRealty(params) {
    return http.put("/realty/updateRealty", params);
  },
  //   删除小区信息
  deleteRealty(params) {
    return http.delete("/realty/deleteRealty", { params });
  }
};
